package com.lagou.feign;

import com.lagou.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "lagou-service-product",fallback = ProductFeignImpl.class)
public interface ProductsFeign {

    @GetMapping("/product/query/{id}")
    public Products queryById(@PathVariable Integer id);
}
